home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / GopherTools / jughead / jughead.0.9 / jughead.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-21  |  3.0 KB  |  108 lines

  1. /*****************************************************************************
  2.  * File:    jughead.h
  3.  *
  4.  * Author:    Rhett "Jonzy" Jones
  5.  *        jonzy@cc.utah.edu
  6.  *
  7.  * Date:    May 20, 1993
  8.  *
  9.  * Modifed:    May 22, 1993, by Rhett "Jonzy" Jones.
  10.  *        Removed the external definitions for exceptionHost',
  11.  *        'exceptionPort', and 'exceptionSelStr', and added the
  12.  *        variable 'nogos' to support a list of exceptions.
  13.  *
  14.  * Description:    Header file for use with "jughead.c" and "getargs.c".
  15.  *
  16.  * Bugs:    No known bugs.
  17.  *
  18.  * Copyright:    Copyright 1993, University of Utah Computer Center.
  19.  *        This source may be freely distributed as long as this copyright
  20.  *         notice remains intact, and is in no way used for any monetary
  21.  *         gain, by any institution, business, person, or persons.
  22.  *
  23.  ****************************************************************************/
  24.  
  25. #include "utils.h"
  26.  
  27. /* These defines were taken from "GSgopherobj.h". */
  28. #define A_FILE      '0'      /* Types of objects */
  29. #define A_DIRECTORY '1'
  30. #define A_CSO       '2'
  31. #define A_ERROR     '3'
  32. #define A_MACHEX    '4'
  33. #define A_PCBIN     '5'
  34. #define A_INDEX     '7'
  35. #define A_TELNET    '8'
  36. #define A_UNIXBIN   '9'
  37. #define A_SOUND     's'
  38. #define A_EVENT     'e'
  39. #define A_CALENDAR  'c'
  40. #define A_GIF       'g'
  41. #define A_HTML      'h'
  42. #define A_TN3270    'T'
  43. #define A_MIME      'M'
  44. #define A_IMAGE     'I'
  45. #define A_EOI        '.'
  46.  
  47. #define BUFFERSIZE    2048            /* The size of our buffer. */
  48. #define DEFAULTPORT    "70"            /* The default port to use. */
  49. #define EMPTYSTRING    ""            /* The empty C string. */
  50. #define FIRSTMENU    0            /* The level of indention. */
  51. #define INDENTSTR    "    "            /* What we indent with. */
  52. #define MAXHOSTS    50            /* The maximum number of hosts2search. */
  53. #define NIL        (void *)0L        /* Same as NULL, but ... Oh well. */
  54.  
  55. #define YEP        '1'            /* The pathway as been printed. */
  56. #define NOPE        '\0'            /* The pathway has not been printed. */
  57.  
  58. typedef struct { char    *sStr,            /* The selector string. */
  59.             *hStr,            /* The host string. */
  60.             *pStr;            /* The port string. */
  61.            } ListInfo;            /* List info about the host or message. */
  62.  
  63. typedef struct node { ListInfo      info;        /* The info contained at this node. */
  64.               struct node *next,    /* Pointer to the next node. */
  65.                   *last;    /* The last node before this one. */
  66.             } List;
  67.  
  68. /* The following are declared in "jughead.c". */
  69. extern char    buffer[BUFFERSIZE],
  70.         path[BUFFERSIZE],
  71.         pathPrinted[50],
  72.         *searchHosts[MAXHOSTS],
  73.         *initialHost,
  74.         *selStr,
  75.         *hostStr,
  76.         *portStr,
  77.         *fileName,
  78.         *userName;
  79. extern int    numSearchHosts,
  80.         debug,
  81.         info4dirsOnly,
  82.         info4allItems,
  83.         listHosts,
  84.         listHostsNPorts,
  85.         onlyDoHosts,
  86.         onlyDoHostsT,
  87.         buildDataFile,
  88.         menuFlag,
  89.         printLineNumbers,
  90.         searchPort,
  91.         printDTree,
  92.         printDTreeDirs,
  93.         time2process;
  94. extern short    buildIndex,
  95.         doSearch;
  96. extern List    *nogos;
  97.  
  98. /* The following is declared in "search.c". */
  99. extern char    *logFile;
  100.  
  101. #ifdef USEPROTOTYPES
  102.     extern int    GetArguments(int argc,char *argv[],char **fileName,char **logFile);
  103.     extern void    InitPath(void);
  104. #else
  105.     extern int    GetArguments();
  106.     extern void    InitPath();
  107. #endif
  108.